<?php

namespace App\Eloquent;

/**
 * 用户信息表(前台)
 *
 * Class UserInfo
 * @package App\Admin\Eloquent
 */
class UserInfo extends Model
{


    protected $fillable = ['name', 'name_verified', 'user_id', 'email', 'id_card', 'failure_time', 'bank_card_id','phone_number', 'failured', 'recommended', 'invite_code','invite_money','bank_account_no','bank_code','bank_card_id','org_code','dept_code','broker_code','set_pay_password_time', 'agent_name', 'license_no', 'agent_mobile'];

    protected $table = 'user_info';

    protected $primaryKey = 'user_id';

    /**
     * 获取关联的用户
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function user()
    {
        return $this->belongsTo('App\Eloquent\User');
    }
}